#ifndef MYTCPSERVER_H
#define MYTCPSERVER_H
#include <QObject>
#include <QTcpServer>

class MyTcpSever :public QTcpServer
{
    Q_OBJECT
public:
    explicit MyTcpSever(QObject *parent = nullptr);
protected:
    //虚函数，改写行为
    void incomingConnection(qintptr socketDescriptor);
signals:
    void newClient(qintptr socket);
public slots:
};

#endif // MYTCPSERVER_H
